package com.github.m6d21.sso.support.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *<p>
 *页面重定向
 *</p>
 *
 * @author liuyang
 * @date 2018/12/18 Tue 19:49:00
 * @since 1.0.0
 */
@Api(value = "html redirect", description = "页面重定向")
public class HtmlRedirectController {

    @ApiOperation("重定向到首页")
    @RequestMapping("/")
    public String redirectToIndex() {
        return "index";
    }

    @ApiOperation("重定向到登录页")
    @RequestMapping("/login")
    public String redirectToLogin() {
        return "login";
    }
}
